<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 波哥
  Date: 2018/1/26
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()%>/"/>
    <script type="text/javascript" src="js/jquery-2.1.0.js"></script>
</head>
<body>
<a href="house/preAdd">添加租房</a>
    <table>
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>图片</th>
            <th>大小</th>
            <th>户型</th>
            <th>楼层</th>
            <th>户主</th>
            <th>位置</th>
            <th>小区</th>
            <th>租金</th>
            <th>类型</th>
            <th><a href="house/list">租金</a> </th>
        </tr>
        <c:forEach items="${houseList}" var="house">
            <tr>
                <td>${house.houseId}</td>
                <td>${house.houseName}</td>
                <td>
                    <img src="show/${house.housePic}"/>
                </td>
                <td>${house.huseSize}</td>
                <td>${house.houseLayout}</td>
                <td>${house.houseFloor}</td>
                <td>${house.houseMaster}</td>
                <td>${house.houseAddress}</td>
                <td>${house.houseEstate}</td>
                <td>${house.housePrice}</td>
                <td>${house.houseType.typeJname}</td>
                <td>操作</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
<script>
    function  show() {
        alert("")
    }
    $(function () {

    })
</script>